CF Org and Space Administration
Here's a collection of handy commands you might use to administer Orgs and Spaces.
Create A new User
Ensure you're logged in and are targeting the desired Organization
The following will create a new user in your Orgainzation
cf create-user
EXAMPLE: cf create-user [email protected] $up3rS3cr3t Give 'Space Developer' privileges so users can deploy and manage apps
cf set-space-role
EXAMPLE: cf set-space-role [email protected] predix-apm dev SpaceDeveloper Delegate 'Admin' privileges in Orgs or Spaces
If you are an OrgManager of SpaceManager, you can grant similar access to other users.
Grant OrgManager privileges
cf set-org-role
EXAMPLE: cf set-org-role [email protected] predix-apm OrgManager Grant SpaceManager privileges
cf set-space-role
EXAMPLE: cf set-space-role [email protected] predix-apm dev SpaceManager Show Users and Privileges
You can see what users belong to your org, and to the various spaces within the org.
Show Users in the Org
cf org-users
EXAMPLE: cf org-users predix-apm Getting users in org predix-apm as admin...
ORG MANAGER [email protected] [email protected] [email protected]
BILLING MANAGER
ORG AUDITOR Show Users in an Org and Space
cf space-useres
EXAMPLE: cf space-users predix-apm dev Getting users in org predix-apm / space dev as admin
SPACE MANAGER admin [email protected] [email protected]
SPACE DEVELOPER
admin